package com.dubbo.common.exception;
/**
 * 通用ajax请求成功抛出此异常
 * @author chenwei
 * @date 2018年2月26日 下午3:14:20
 */
public class AjaxCheckSuccess extends Exception {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -7681096817034646071L;
	/**
	 * 数据结果名称
	 */
	private String targetName;
	/**
	 * 数据结果值
	 */
	private Object targetValue;
	
	public AjaxCheckSuccess(String message) {
		super(message);
	}
	/**
	 * 返回消息,数据名称,数据值 的结果集
	 * @param message
	 * @param targetName
	 * @param targetValue
	 */
	public AjaxCheckSuccess(String message,String targetName,Object targetValue) {
		super(message);
		this.targetName=targetName;
		this.targetValue=targetValue;
	}
	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		return super.getMessage();
	}
	public String getTargetName() {
		return targetName;
	}
	public void setTargetName(String targetName) {
		this.targetName = targetName;
	}
	public Object getTargetValue() {
		return targetValue;
	}
	public void setTargetValue(Object targetValue) {
		this.targetValue = targetValue;
	}
	
}
